package com.pricl.frame.shiro;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;

import com.pricl.frame.core.App;

public class ApplicationSessionListener implements SessionListener {

	private App app;

	@Override
	public void onExpiration(Session session) {
		//System.out.println("11");
	}

	@Override
	public void onStart(Session session) {
		//System.out.println("12");
		//System.out.println(session.getId().toString());
		// Helper.setUser(session.getId().toString(), app.packageUser());
	}

	@Override
	public void onStop(Session session) {
		//System.out.println("13");
		//System.out.println(session.getId().toString());
		// Helper.removeUser(session.getId().toString());
	}

	public App getApp() {
		return app;
	}

	public void setApp(App app) {
		this.app = app;
	}

}
